<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .image-container {
      max-width: 100%;
      max-height: auto;
    }
    .image-container img {
      max-width: 100%;
      max-height: 100%;
    }
  </style>
</head>
<body>
  <div class="image-container">
    <img src="./image.png" alt="自适应图片">
  </div>
</div>
</body>
</html>